package com.lhz.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author LiGezZ
 * @Date 2021/08/02 20:57:07
 * @Description: 定时任务调度
 */
@Schema(description = "定时任务调度编辑参数")
@Data
public class JobInfoForm implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "任务ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "任务名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "cron执行表达式", requiredMode = Schema.RequiredMode.REQUIRED)
    private String cron;

    @Schema(description = "任务执行器Bean对象.方法名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String executorHandler;

    @Schema(description = "任务执行参数,参数json形式", requiredMode = Schema.RequiredMode.REQUIRED)
    private String executorParam;

    @Schema(description = "状态（1正常 1暂停）", hidden = true)
    private Integer status;

}
